package spring.study.annotation.bean;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * @author study
 * @version 1.0
 * @date 2020/6/19 22:17
 */
public class Dog {

    public Dog() {

    }

    @PostConstruct
    public void init() {
        System.out.println("dog  PostConstruct");
    }

    @PreDestroy
    public void destory() {
        System.out.println("dog PreDestroy ");
    }
}
